package cn.stronglink.asset.module.assetmanage.puton.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.PutOn;
import cn.stronglink.asset.model.PutOnDetail;
import cn.stronglink.asset.module.assetmanage.itasset.vo.ItAssetVo;

public interface PutOnMapper {
	
	public List<PutOnDetail> queryPutOnDetailList(@Param("id")Long id );

	public List<PutOnDetail> queryPutOnDetailByParentId(@Param("putOnId")Long putOnId);
	
	public List<PutOn> queryPutOnList(Pagination page,@Param("params")Map<String, Object> params);
	
	public PutOn queryPutOnById(@Param("id")Long id);
	
	public void remove(Long id);
	
	public void removeDetail(Long id);

	public void insertPutOnDetail(PutOnDetail detail);

	public void updatePutOnDetail(PutOnDetail detail);
	
	public void updatePutOn(PutOn PutOn);

	public int insertPutOn(PutOn putOn);

	public PutOnDetail qryById(@Param("id") Long id);

	public List<PutOn> getPutUpList(@Param("userId") Long userId);

	public List<PutOnDetail> getTerminalPutUpList();
	public List<ItAssetVo> querAssetListByParam(Pagination page,@Param("params") Map<String, Object> params);

	public List<PutOnDetail> qryPutOnDetailVo(@Param("id")  Long id);

	public List<PutOn> getPutOnList(@Param("userId") String userId);

	public List<PutOnDetail> getDetailById(@Param("pid") Long pid);
	public void removeDetailByPutOnId(@Param("putOnId") Long id);

	public List<PutOnDetail> queryDetailStatus(@Param("putOnId") Long id);
	


}
